#include <iostream>
#include <cstring>

using namespace std;

struct Books
{
    char title[50];
    char author[50];
    char subject[100];
    int book_id;
};

int main() {
    Books Book1;
    Books Book2;

    strcpy(Book1.title,"C++教程");
    strcpy(Book1.author,"Runoob");
    strcpy(Book1.subject,"编程语言");
    Book1.book_id = 12345;

    strcpy(Book2.title,"CSS教程");
    strcpy(Book2.author,"Runoob");
    strcpy(Book2.subject,"前端技术");
    Book2.book_id = 12346;

    cout << "第一本书标题：" << Book1.title << endl;
    cout << "第一本书作者：" << Book1.author << endl;
    cout << "第一本书类目：" << Book1.subject << endl;
    cout << "第一本书ID:" << Book1.book_id << endl;

    cout << "第二本书标题：" << Book2.title << endl;
    cout << "第二本书作者：" << Book2.author << endl;
    cout << "第二本书类目：" << Book2.subject << endl;
    cout << "第二本书ID:" << Book2.book_id << endl;

    return 0;
}
